<%@ page import="java.util.Date" %>
<%@ page language="java" contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib prefix="shiro" uri="http://shiro.apache.org/tags" %>
<!--_meta 作为公共模版分离出去-->
<!DOCTYPE HTML>
<%
    String path = request.getContextPath();
    String basePath = request.getScheme() + "://" + request.getServerName() + ":"
            + request.getServerPort() + path + "/";
%>
<html>
<head>
    <base href="<%=basePath%>"/> <!-- 设置页面的基础路径，页面所有资源引入和页面跳转都基于bathPath -->

    <meta charset="utf-8">
    <meta name="renderer" content="webkit|ie-comp|ie-stand">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,patientDiagnose-scalable=no" />
    <meta http-equiv="Cache-Control" content="no-siteapp" />
    <link rel="Bookmark" href="/favicon.ico" >
    <link rel="Shortcut Icon" href="/favicon.ico" />
    <link rel="stylesheet" type="text/css" href="static/h-ui/css/H-ui.min.css" />
    <link rel="stylesheet" type="text/css" href="static/h-ui.admin/css/H-ui.admin.css" />
    <link rel="stylesheet" type="text/css" href="lib/Hui-iconfont/1.0.8/iconfont.css" />
    <link rel="stylesheet" type="text/css" href="static/h-ui.admin/skin/default/skin.css" id="skin" />
    <link rel="stylesheet" type="text/css" href="static/h-ui.admin/css/style.css" />
</head>
<body>
<article class="page-container">
    <!-- 展示详细的就诊信息 -->
    <form class="form form-horizontal" method="post" id="patientDiagnoseForm">
        <!-- 在显示详细就诊信息的环境下展示diagnoseId -->
        <input type="hidden" value="${patientDiagnose.diagnoseId }" name="diagnoseId" />
        <!-- 显示就诊ID -->
        <div class="row cl">
            <div class="block col-xs-4 col-sm-4">
                <div style="font-weight:bold">就诊ID: ${patientDiagnose.diagnoseId }</div>
            </div>
            <div class="block col-xs-8 col-sm-8" >
                <div style="font-weight:bold;color: red;">
                    处方费用: <span id="showRecipeMoney">${patientDiagnose.recipeMoney }</span>
                </div>
            </div>
        </div>

        <div class="row cl">
            <%--左边部分：患者基本信息--%>
            <div class="block col-xs-4 col-sm-4" style="background-color: lightgray;height: 450px;">
                <label style="font-weight: bold">患者信息</label>

                <div class="row cl left">
                    <label class="form-label col-xs-4 col-sm-4"><span class="c-red">*</span>门诊挂号ID：</label>
                    <div class="formControls col-xs-8 col-sm-8">
                        <input type="text" name="patientRegisterId" id="patientRegisterId" disabled
                               class="input-text" value="${patientDiagnose.patientRegisterId}"/>
                    </div>
                </div>

                <%--该参数用于展示，不提交，所有没有name属性--%>
                <div class="row cl left">
                    <label class="form-label col-xs-4 col-sm-4"><span class="c-red">*</span>姓名：</label>
                    <div class="formControls col-xs-8 col-sm-8">
                        <input type="text" class="input-text" readonly="readonly" disabled
                               value="${patientDiagnose.patientName }" id="patientName" >
                    </div>
                </div>
                <%--该参数用于展示，不提交，所有没有name属性--%>
                <div class="row cl left">
                    <label class="form-label col-xs-4 col-sm-4"><span class="c-red">*</span>性别：</label>
                    <div class="formControls col-xs-8 col-sm-8">
                        <input type="text" class="input-text" readonly="readonly" disabled
                               value="${patientDiagnose.patientGender eq 1 ? '男' : (patientDiagnose.patientGender eq 2 ? '女' : '')}"
                               id="patientGender">
                    </div>
                </div>
                <%--该参数用于展示，不提交，所有没有name属性--%>
                <div class="row cl left" >
                    <label class="form-label col-xs-4 col-sm-4"><span class="c-red">*</span>生日：</label>
                    <div class="formControls col-xs-8 col-sm-8">
                        <input type="text" class="input-text" readonly="readonly" disabled
                               value="${patientDiagnose.patientBirthdayStr }" id="patientBirthday">
                    </div>
                </div>
                <%--该参数用于展示，不提交，所有没有name属性--%>
                <div class="row cl left" >
                    <label class="form-label col-xs-4 col-sm-4"><span class="c-red">*</span>住址：</label>
                    <div class="formControls col-xs-8 col-sm-8">
                        <input type="text" class="input-text" readonly="readonly" disabled
                               value="${patientDiagnose.patientAddress }" id="patientAddress">
                    </div>
                </div>

                <div class="row cl left" >
                    <label class="form-label col-xs-4 col-sm-4"><span class="c-red">*</span>手机号：</label>
                    <div class="formControls col-xs-8 col-sm-8">
                        <input type="text" class="input-text" disabled
                               value="${patientDiagnose.patientMobile }" id="patientMobile" name="patientMobile">
                    </div>
                </div>

                <div class="row cl left" >
                    <label class="form-label col-xs-4 col-sm-4"><span class="c-red">*</span>过敏史：</label>
                    <div class="formControls col-xs-8 col-sm-8">
                         <textarea id="allergicHistory" name="allergicHistory" class="textarea" style="height: 50px" disabled
                                   placeholder="请输入患者过敏史（250字以内），没有则写无" >${patientDiagnose.allergicHistory }</textarea>
                    </div>
                </div>

            </div>


            <%--右边部分：诊断信息--%>
            <div class="block col-xs-8 col-sm-8" style="background-color: lightblue; height: 450px;">
                <label style="font-weight: bold">诊断信息</label>
                <%--该参数用于展示，不提交，所有没有name属性--%>
                <div class="row cl right" >
                    <label class="form-label col-xs-2 col-sm-2"><span class="c-red">*</span>挂号科室：</label>
                    <div class="formControls col-xs-4 col-sm-4">
                        <input type="text" class="input-text" readonly="readonly" disabled
                               value="${patientDiagnose.registerDept }" id="registerDept" >
                    </div>
                    <%--该参数用于展示，不提交，所有没有name属性--%>
                    <label class="form-label col-xs-2 col-sm-2"><span class="c-red">*</span>主治医师：</label>
                    <div class="formControls col-xs-4 col-sm-4">
                        <input type="text" class="input-text" readonly="readonly" disabled
                               value="${patientDiagnose.doctor }" id="doctor">
                    </div>
                </div>

                <div class="row cl right" >
                    <label class="form-label col-xs-2 col-sm-2"><span class="c-red">*</span>主诉：</label>
                    <div class="formControls col-xs-10 col-sm-10">
                        <textarea id="symptoms" name="symptoms" class="textarea" style="height: 50px" disabled
                                  placeholder="请输入患者主要症状（250字以内）" >${patientDiagnose.symptoms }</textarea>
                    </div>
                </div>

                <div class="row cl right" >
                    <label class="form-label col-xs-2 col-sm-2"><span class="c-red">*</span>发病日期：</label>
                    <div class="formControls col-xs-2 col-sm-2">
                        <input type="date" class="input-text" value="${patientDiagnose.symptomEmergeTimeStr }" disabled
                                id="symptomEmergeTime" name="symptomEmergeTime" style="width: 150px">
                    </div>

                    <label class="form-label col-xs-2 col-sm-2"><span class="c-red">*</span>接诊类型：</label>
                    <div class="formControls col-xs-2 col-sm-2">

                        <c:if test="${patientDiagnose.diagnoseType == 1}">
                            <input type="text" class="input-text" value="初诊" disabled
                                   id="diagnoseType" name="diagnoseType" style="width: 150px">
                        </c:if>
                        <c:if test="${patientDiagnose.diagnoseType == 2}">
                            <input type="text" class="input-text" value="复诊" disabled
                                   id="diagnoseType" name="diagnoseType" style="width: 150px">
                        </c:if>
                        <c:if test="${patientDiagnose.diagnoseType == 3}">
                            <input type="text" class="input-text" value="紧急诊" disabled
                                   id="diagnoseType" name="diagnoseType" style="width: 150px">
                        </c:if>
                    </div>

                    <label class="form-label col-xs-2 col-sm-2"><span class="c-red">*</span>是否传染：</label>
                    <div class="formControls col-xs-2 col-sm-2">
                        <c:if test="${patientDiagnose.isEpidemic == 0}">
                            <input type="text" class="input-text" value="否" disabled
                                   id="isEpidemic" name="isEpidemic">
                        </c:if>
                        <c:if test="${patientDiagnose.isEpidemic == 1}">
                            <input type="text" class="input-text" value="是" disabled
                                   id="isEpidemic" name="isEpidemic">
                        </c:if>
                    </div>
                </div>

                <div class="row cl right" >
                    <label class="form-label col-xs-2 col-sm-2"><span class="c-red">*</span>诊断结果：</label>
                    <div class="formControls col-xs-10 col-sm-10">
                        <textarea id="diagnoseResult" name="diagnoseResult" class="textarea" style="height: 50px" disabled
                                  placeholder="请输入诊断结果（250字以内）" >${patientDiagnose.diagnoseResult }</textarea>
                    </div>
                </div>

                <div class="row cl right" >
                    <label class="form-label col-xs-2 col-sm-2"><span class="c-red">*</span>医生建议：</label>
                    <div class="formControls col-xs-10 col-sm-10">
                        <textarea id="advice" name="advice" class="textarea" style="height: 50px" disabled
                                  placeholder="请输入医生建议（250字以内）" >${patientDiagnose.advice }</textarea>
                    </div>
                </div>

                <div class="row cl right" >
                    <label class="form-label col-xs-2 col-sm-2"><span class="c-red">*</span>备注信息：</label>
                    <div class="formControls col-xs-10 col-sm-10">
                        <textarea id="remark" name="remark" class="textarea" style="height: 50px" disabled
                                  placeholder="请输入备注信息（250字以内）" >${patientDiagnose.remark }</textarea>
                    </div>
                </div>

                <label style="font-weight: bold">处方信息</label>
                <div class="row cl right" >
                    <label class="form-label col-xs-2 col-sm-2"><span class="c-red">*</span>处方：</label>
                    <div class="formControls col-xs-2 col-sm-2">
                        <input type="text" class="input-text" value="${patientDiagnose.recipeName }" disabled
                               id="recipeId" name="recipeId" style="width: 150px">
                    </div>

                    <%--该参数用于展示，不提交，所有没有name属性--%>
                    <label class="form-label col-xs-2 col-sm-2"><span class="c-red">*</span>处方类型：</label>
                    <div class="formControls col-xs-2 col-sm-2">
                        <input type="text" class="input-text" readonly="readonly" disabled
                               value="${patientDiagnose.recipeType }" id="recipeType" name="recipeType">
                    </div>
                    <%--该参数用于展示，不提交，所有没有name属性--%>
                    <label class="form-label col-xs-2 col-sm-2"><span class="c-red">*</span>处方费用：</label>
                    <div class="formControls col-xs-2 col-sm-2">
                        <input type="text" class="input-text" readonly="readonly" disabled
                               value="${patientDiagnose.recipeMoney }" id="recipeMoney" name="recipeMoney">
                    </div>
                </div>


            </div>
        </div>

        <div class="row cl">
            <div class="col-sm-4">
                <input class="btn btn-primary radius" type="submit" onclick="parent.layer.closeAll()" value="&nbsp;&nbsp;确定&nbsp;&nbsp;">
            </div>
            <div class="col-sm-8">
                <input class="btn btn-warning radius" type="reset" onclick="parent.layer.closeAll()" value="&nbsp;&nbsp;退出&nbsp;&nbsp;">
            </div>
        </div>
    </form>
</article>

<!--_footer 作为公共模版分离出去-->
<script type="text/javascript" src="lib/jquery/1.11.3/jquery.min.js"></script>
<script type="text/javascript" src="lib/layer/2.4/layer.js"></script>
<script type="text/javascript" src="static/h-ui/js/H-ui.min.js"></script>
<script type="text/javascript" src="static/h-ui.admin/js/H-ui.admin.js"></script> <!--/_footer /作为公共模版分离出去-->

<!--请在下方写此页面业务相关的脚本-->
<script type="text/javascript" src="lib/webuploader/0.1.5/webuploader.min.js"></script>
<script type="text/javascript" src="lib/My97DatePicker/4.8/WdatePicker.js"></script>
<script type="text/javascript" src="lib/jquery.validation/1.14.0/jquery.validate.js"></script>
<script type="text/javascript" src="lib/jquery.validation/1.14.0/validate-methods.js"></script>
<script type="text/javascript" src="lib/jquery.validation/1.14.0/messages_zh.js"></script>
<script type="text/javascript" src="lib/ueditor/1.4.3/ueditor.config.js"></script>
<script type="text/javascript" src="lib/ueditor/1.4.3/ueditor.all.min.js"> </script>
<script type="text/javascript" src="lib/ueditor/1.4.3/lang/zh-cn/zh-cn.js"></script>
<script type="text/javascript" src="lib/jquery/jquery.serializejson.min.js"></script>

</body>
</html>
